//
//  SendWeiboImage.h
//  share
//
//  Created by Kongho Poon on 15/3/11.
//  Copyright (c) 2015年 Jxtech. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, ImageCell_Type) {
  ImageCell_IC = 1,//身份证
  ImageCell_Qualification = 2,//资质
};

@protocol SendWeiboImageDelegate;
@interface SendWeiboImage : UIView

@property (nonatomic, weak) IBOutlet UIImageView *imageView;
@property (nonatomic, weak) IBOutlet UIButton    *deleteBtn;
@property (nonatomic, weak) IBOutlet UIButton    *clickBtn;

@property (nonatomic, strong) UIImage   *image;
@property (nonatomic, assign) NSInteger index;
@property (nonatomic, assign) id<SendWeiboImageDelegate> delegate;
@property (nonatomic, assign) ImageCell_Type type;

@end


@protocol SendWeiboImageDelegate <NSObject>

@optional

- (void)sendWeiboImage:(SendWeiboImage *)imageView deleteAtIndex:(NSInteger)index type:(ImageCell_Type)type;
- (void)clickToAddImageWithType:(ImageCell_Type)type;

@end
